<?php

namespace Welcomescreen\Agavi\Validator;

class UserValidator extends \AgaviValidator {
	public function validate() {
		$name = $this->getData($this->getArgument());
		if(!$this->getContext()->getModel('UserManager')->hasUser($name)) {
			$this->throwError();
			return false;
		}
		return true;
	}
}

?>